package com.lmf.cloud.feign;

import com.lmf.cloud.feign.fallback.MyControllerFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description TODO
 * <p>
 * Copyright @2022 Shanghai Mise Co. Ltd.
 * All right reserved.
 * <p>
 * @Author LiuMingFu
 * @Date 2024/7/23 16:06
 */
//fallback需要与Sentinel整合才能支持，否则无效
@FeignClient(value = "cloud-provider-payment8001", path = "/provider", fallback = MyControllerFeignFallback.class)
public interface MyControllerFeign {

    @RequestMapping("/getData2")
    String getData2(@RequestParam(required = false) String name);
}
